From 11cdd044da59267945b21a3495cfcdb31f9acfd4 Mon Sep 17 00:00:00 2001 From: tsteven4 Date: Sat, 28 Apr 2018 10:28:53 -0600 Subject: [PATCH] fix up test_encoding_utf8 environment for docker. --- docker_hook | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker_hook b/docker_hook index 4ccaa4a1e..22ec02a8c 100755 --- a/docker_hook +++ b/docker_hook @@ -3,6 +3,11 @@ # setup up and run a docker build. # this is used by travis. # -cnt=$(docker create -v `pwd`:/app -e CC=$CC -e CXX=$CXX tsteven4/gpsbabel_build_environment bash -c "./build_and_test") +# create the container to run the build and regression. +# pass the compiler from the travis matrix through CC, CXX. +# we need the default charmap to be UTF-8 for test_encoding_utf8, explicit set it here through LC_ALL. +cnt=$(docker create -v `pwd`:/app -e CC=$CC -e CXX=$CXX -e LC_ALL=C.UTF-8 tsteven4/gpsbabel_build_environment bash -c "./build_and_test") +# copy the pwd to the container. travis has got the code user test in the pwd. docker cp . $cnt:/app +# run the container to execute the build and the regression. docker start -a $cnt -- 2.30.2